<?php
/**
 * 请假
 */
namespace App\model;

use Illuminate\Database\Eloquent\Model;

class Fine extends Model
{
    protected $table='fine';
    /**
     * 请假
     * 作者:
     */
    public function fineXiang($use_id)
    {
        $m=date('m',time());
        $arr= $this->where('use_id',$use_id)->get()->toArray();
        foreach($arr as $key => $value){
            if(date('m',$value['fin_time'])+1==$m){
                return $value;die;
            }
        }
    }
}
